package com.comptel.actions.example;

import com.comptel.actions.Action;
import com.comptel.actions.ActionResult;

public class IntegerIsZeroAction implements Action {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Override
	public String getName() {
		return "iszero";
	}

	@Override
	public ActionResult execute(Object obj) {
		return new SimpleActionResult( (((Integer)obj).intValue() == 0)+"" );
	}

}
